package com.example.demo04.service;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import com.example.demo04.entity.StStoreOrderDetail;
import com.example.demo04.mapper.StStoreOrderDetailMapper;

/**
 * @author admin
 * @Description ${Description}
 * @date 2020-07-18 11:15:00
 */
@Service
public class StStoreOrderDetailService {

    @Resource
    private StStoreOrderDetailMapper stStoreOrderDetailMapper;

    public int deleteByPrimaryKey(String orderDetailId) {
        return stStoreOrderDetailMapper.deleteByPrimaryKey(orderDetailId);
    }

    public int insert(StStoreOrderDetail record) {
        return stStoreOrderDetailMapper.insert(record);
    }

    public int insertSelective(StStoreOrderDetail record) {
        return stStoreOrderDetailMapper.insertSelective(record);
    }

    public StStoreOrderDetail selectByPrimaryKey(String orderDetailId) {
        return stStoreOrderDetailMapper.selectByPrimaryKey(orderDetailId);
    }

    public int updateByPrimaryKeySelective(StStoreOrderDetail record) {
        return stStoreOrderDetailMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(StStoreOrderDetail record) {
        return stStoreOrderDetailMapper.updateByPrimaryKey(record);
    }

}
